package com.ews.onlineexchange.service.comparator;

import java.util.Comparator;

import com.ews.onlineexchange.model.Trade;

/**
 * 评价分数计算机
 * 择优选取获取最高综合得分
 */
public class BestChooseScoreComparator implements Comparator<Trade> {

	@Override
	public int compare(Trade o1, Trade o2) {		
		return o1.getSumScore().compareTo( o2.getSumScore() ) * -1;
	}
}
